﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Mobile.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%
        Microhard.Permission.Interface.IFuncAuthorization ifu = Microhard.Core.IoC.Resolve<Microhard.Permission.Interface.IFuncAuthorization>();
        List<Telerik.Web.Mvc.UI.MenuItem> allMenus = ifu.GetMenusByPermission(Html.GetCurrentUserName());
    
    %>
    <ul data-role="listview" data-inset="true">
        <%foreach (var m in allMenus)
          {
              foreach (var s in m.Items)
              {
        %>
        <li>
            <%=Html.ActionLink(s.Text,s.ActionName, s.ControllerName, s.RouteValues,null)%></li>
        <%}
          }%>
    </ul>
</asp:Content>
